package com.yl.chainStore.entity.sick

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableField
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import com.yl.chainStore.common.enums.Status
import com.yl.common.annotation.NoArg
import java.util.*

/**
 * <p>
 *
 * </p>
 *
 * @author cxw
 * @since 2021-07-26
 */
@NoArg
@TableName("sick_medical_records")
data class SickMedicalRecords(

	/**
	 * 患者就诊记录
	 */
	@TableId(value = "id", type = IdType.AUTO)
	var id: Long = 0,

	/**
	 * 患者id
	 */
	@TableField("customer_id")
	var customerId: Long,

	/**
	 * 医生id
	 */
	@TableField("doctor_id")
	var doctorId: Long ?= null,

	/**
	 * 护士id
	 */
	@TableField("nurse_id")
	var nurseId: Long? = null,

	/**
	 * 内容
	 */
	@TableField("other")
	var other: Any? = null,


	/**
	 * 开始时间
	 */
	@TableField("start_time")
	var startTime: Date = Date(),

	/**
	 * 结束时间
	 */
	@TableField("end_time")
	var endTime: Date? = null,

	/**
	 *  初诊医生
	 */
	@TableField("primary_care_doctor")
	var primaryCareDoctor: Long? = null,
	/**
	 * 主诉
	 */
	@TableField("action_chief")
	var actionChief: String? = null,

	/**
	 * 初步判断
	 */
	@TableField("preliminary_judgment")
	var preliminaryJudgment: String? = null,

	/**
	 * 症状
	 */
	@TableField("symptoms")
	var symptoms: String? = null,

	/**
	 * 状态
	 */
	@TableField("status")
	var status: Status = Status.NEW_ADD
)
